import { ApiProperty } from '@nestjs/swagger';
import { IsInt } from 'class-validator';

export class AppHistoryDtoParams {
  @ApiProperty({ required: false, description: '文章名称' })
  articleName: string;
}

export class AppHistoryListDto {
  @ApiProperty()
  @IsInt()
  pageSize: number;

  @ApiProperty()
  @IsInt()
  pageNum: number;

  // @ApiProperty()
  // @ValidateNested()
  // @Type(() => AppHistoryDtoParams)
  // params: AppHistoryDtoParams;
}
